int i;
int j;
int n;
int sum;
int temp;
int step;
int result;

n = 100;
sum = 0;
step = 2;
result = 0;

i = 0;
while (i < n) {
    temp = 50 * step;
    
    j = 0;
    while (j < n) {
        sum = sum + j * step;
        result = result + i * n + j;
        result = result + i * n - j;
        j = j + 1;
    }
    
    i = i + 1;
} 